package cate.game.role.bag.heropart.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBBag;
import cate.game.role.bag.vo.TidNumVO;
import easy.java.dev.note.NoteField;

import java.util.List;

@ClientMsg(title = "英雄碎片出售 请求")
@OperationSetter(GDOperation.FRAGMENT_SELL)
public class HeroPartSellReq implements MsgInput {
    @NoteField("道具id")
    public List<TidNumVO> items;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getBag().heroPart.sell(items);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBag.HERO_PART_SELL_REQ;
    }
}
